<?php
session_start();
require '../nette/Nette/loader.php';
require '../db.php';
require '../localization/lang.php';
require '../core/core.sanitizer.php';
require '../core/core.security.php';
require '../core/core.time.php';
require '../visual/visual.tasks.php';

$login=new core_security;
if ($login->checklogin()=="OK") {

$time=new core_time;
$query="select * from userjobs where uid=".$_POST['uid']." AND jid=".$_POST['jid']." AND from_ > ".strtotime($_POST['datefrom'])." AND to_ < ".strtotime($_POST['dateto'])." ORDER BY from_ ";
$result=mysql_query($query);

while ($row=mysql_fetch_array($result)) {
	echo "<span width='200'><b>".$time->todatedef($row['from_'])."</b> | <span width='50'>".$time->tohm($row['duration'])."</span> | <span width='400'>".$row['note']."</span><br>";
	}

//echo $query." ".$_post['datefrom'];
}
?>
